/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.race.dao;

import com.lczyfz.istep.common.persistence.CrudDao;
import com.lczyfz.istep.common.persistence.annotation.MyBatisDao;
import com.lczyfz.istep.modules.race.entity.RaceCtfSubject;
import com.lczyfz.istep.modules.race.entity.RaceRepertory;
import com.lczyfz.istep.modules.race.entity.RaceSchedule;
import com.lczyfz.istep.modules.resource.entity.ResourceCtfSubjectType;

import java.util.List;

/**
 * 赛程管理DAO接口
 * @author CY
 * @version 2017-04-26
 */
@MyBatisDao
public interface RaceScheduleDao extends CrudDao<RaceSchedule> {
    RaceSchedule teamDetails(String id);

   List<RaceRepertory> findRepertory();

    //赛程对应题目
    List<RaceCtfSubject> findRaceSubject(String repertoryId);
    List<RaceCtfSubject> findFuzzyQuery(RaceCtfSubject raceCtfSubject);

    ResourceCtfSubjectType findCtfSubjectType(String id);

    RaceSchedule scheduleStatus();

    void finish();
    public void cleanData();

}